﻿using System;
using System.ComponentModel.DataAnnotations;
using SelfService.Model.Interface;
using WalkingTec.Mvvm.Core;

namespace SelfService.Model.Models
{
    public class SysClientLog : TopBasePoco, ILog
    {
        [Display(Name = "客户端")]
        public SysClient Client { get; set; }

        [Display(Name = "客户端")]
        public Guid ClientId { get; set; }

        [Display(Name = "信息")]
        [Required]
        public string Info { get; set; }

        [Display(Name = "模块")]
        [StringLength(64)]
        [Required]
        public string Module { get; set; }

        [Display(Name = "日志级别")]
        [Required]
        public LogLevel Level { get; set; }

        [Display(Name = "时间")]
        [Required]
        public DateTime CreateTime { get; set; }
    }
}
